﻿namespace XJay.Scheduler.Extend
{
    public static class CorsExtend
    {
        public static IServiceCollection AddAppCors(this IServiceCollection services)
        {
            return services.AddCors(options =>
            {
                options.AddDefaultPolicy(builder =>
                builder.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod());
            });
        }
    }
}
